import Login from "../pages/Login";
import Index from "../pages/admin/dashboard";
import List from "../pages/admin/products/List";
import Edit from "../pages/admin/products/Edit";
import PageNotFound from "../pages/admin/PageNotFound";


import {
    AuditOutlined,
    ShoppingOutlined
} from '@ant-design/icons'

export const mainRoute = [
    {
        path: "/login",
        component: Login
    },
    {
        path: "/404",
        component: PageNotFound
    }
];
export const adminRoute = [
    {
        path: '/admin/dashboard',
        component: Index,
        isShow:true,
        title:'看板',
        icon:<AuditOutlined />
    },
    {
        path: '/admin/products',
        component: List,
        exact: true,
        isShow:true,
        title:'商品管理',
        icon: <ShoppingOutlined />
    },
    {
        path: '/admin/products/edit/:id?',
        component: Edit
    },
]
